<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>企业认证资料 - 社交平台</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    /* 基础样式 */
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f7fa;
      color: #333;
      margin: 0;
      padding-bottom: 70px;
    }
    
    /* 顶部导航 */
    .top-nav {
      height: 50px;
      background-color: #fff;
      border-bottom: 1px solid #eee;
      display: flex;
      align-items: center;
      padding: 0 15px;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .nav-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0 auto;
    }
    
    .nav-btn {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
      text-decoration: none;
    }
    
    /* 状态标签 */
    .status-tag {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 500;
    }
    
    .status-pending {
      background-color: #fff7e6;
      color: #fa8c16;
    }
    
    .status-approved {
      background-color: #f6ffed;
      color: #52c41a;
    }
    
    .status-rejected {
      background-color: #fff2f0;
      color: #ff4d4f;
    }
    
    /* 样式切换器 */
    .style-switcher {
      background-color: #fff;
      padding: 10px 15px;
      border-bottom: 1px solid #eee;
    }
    
    .style-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 5px;
    }
    
    .style-tabs::-webkit-scrollbar {
      display: none;
    }
    
    .style-tab {
      padding: 6px 14px;
      background-color: #f5f7fa;
      border-radius: 20px;
      font-size: 14px;
      white-space: nowrap;
      cursor: pointer;
    }
    
    .style-tab.active {
      background-color: #1890ff;
      color: white;
    }
    
    /* 认证信息头部 */
    .verify-header {
      background-color: #fff;
      padding: 15px;
      border-bottom: 1px solid #eee;
    }
    
    .verify-status-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    
    .verify-title {
      font-size: 17px;
      font-weight: 600;
    }
    
    .verify-meta {
      font-size: 13px;
      color: #666;
      display: flex;
      gap: 15px;
    }
    
    /* 通用资料资料资料页面页面样式 */
    .document-page {
      display: none;
    }
    
    .document-page.active {
      display: block;
    }
    
    /* 资料容器容器 */
    .document-container {
      padding: 10px 15px;
    }
    
    /* 资料卡片 */
    .document-card {
      background-color: #fff;
      border-radius: 8px;
      margin-bottom: 15px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .card-section-title {
      padding: 12px 15px;
      font-size: 15px;
      font-weight: 600;
      color: #666;
      background-color: #f5f7fa;
      border-bottom: 1px solid #eee;
    }
    
    /* 资料单项 */
    .document-item {
      padding: 12px 15px;
      border-bottom: 1px solid #f5f5f5;
      display: flex;
    }
    
    .document-item:last-child {
      border-bottom: none;
    }
    
    .item-label {
      width: 90px;
      color: #666;
      font-size: 14px;
      flex-shrink: 0;
    }
    
    .item-content {
      flex: 1;
      font-size: 14px;
    }
    
    /* 图片预览 */
    .image-preview {
      display: flex;
      gap: 10px;
      margin-top: 8px;
      overflow-x: auto;
      padding-bottom: 5px;
    }
    
    .preview-image {
      width: 80px;
      height: 80px;
      border-radius: 4px;
      overflow: hidden;
      flex-shrink: 0;
      position: relative;
    }
    
    .preview-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .image-count {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: rgba(0,0,0,0.5);
      color: white;
      font-size: 12px;
      text-align: center;
      padding: 2px 0;
    }
    
    /* 审核操作 */
    .action-buttons {
      display: flex;
      gap: 10px;
      padding: 15px;
    }
    
    .action-btn {
      flex: 1;
      padding: 10px 0;
      border-radius: 6px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      text-align: center;
      border: none;
    }
    
    .btn-normal {
      background-color: #f5f5f5;
      color: #666;
    }
    
    .btn-primary {
      background-color: #1890ff;
      color: white;
    }
    
    .btn-danger {
      background-color: #ff4d4f;
      color: white;
    }
    
    /* 底部操作栏 */
    .bottom-action {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: #fff;
      border-top: 1px solid #eee;
      padding: 10px 15px;
      display: flex;
      gap: 10px;
      z-index: 90;
    }
    
    /* 审核反馈 */
    .review-feedback {
      background-color: #fff8e6;
      border-left: 3px solid #faad14;
      padding: 12px 15px;
      margin: 10px 0;
      border-radius: 4px;
    }
    
    .feedback-title {
      font-size: 14px;
      font-weight: 600;
      color: #fa8c16;
      margin-bottom: 5px;
      display: flex;
      align-items: center;
    }
    
    .feedback-title i {
      margin-right: 5px;
    }
    
    .feedback-content {
      font-size: 13px;
      color: #8c6b32;
      line-height: 1.5;
    }
    
    /* 样式1 - 详情列表布局 */
    .detail-style .document-item {
      align-items: center;
    }
    
    .detail-style .item-content {
      word-break: break-word;
    }
    
    /* 样式2 - 分组卡片卡片布局 */
    .card-style .document-section {
      margin-bottom: 15px;
    }
    
    .card-style .card-section-title {
      background-color: transparent;
      padding: 8px 0;
      font-size: 16px;
      color: #333;
      border-bottom: none;
    }
    
    .card-style .document-card {
      padding: 15px;
    }
    
    .card-style .document-item {
      padding: 8px 0;
      border-bottom: 1px solid #f5f5f5;
    }
    
    .card-style .document-item:last-child {
      border-bottom: none;
    }
    
    /* 样式3 - 紧凑    简约    布局 */
    .group-style .document-group {
      margin-bottom: 20px;
    }
    
    .group-style .group-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 10px;
      padding-left: 15px;
    }
    
    .group-style .document-card {
      border-radius: 0;
      box-shadow: none;
      margin-bottom: 0;
      border-bottom: 1px solid #eee;
    }
    
    .group-style .card-section-title {
      display: none;
    }
    
    .group-style .document-item {
      border-bottom: 1px solid #f5f5f5;
    }
    
    .group-style .document-item:last-child {
      border-bottom: none;
    }
    
    /* 样式4 - 简约紧凑布局 */
    .simple-style .document-container {
      padding: 15px;
    }
    
    .simple-style .verify-header {
      padding: 12px 15px;
      background-color: transparent;
      border-bottom: none;
    }
    
    .simple-style .document-card {
      box-shadow: none;
      background-color: transparent;
      margin-bottom: 0;
    }
    
    .simple-style .document-item {
      padding: 10px 0;
      border-bottom: 1px solid #eee;
    }
    
    .simple-style .card-section-title {
      background-color: transparent;
      padding: 15px 0 5px;
      font-size: 16px;
      color: #333;
    }
    
    /* 提示框 */
    .toast {
      position: fixed;
      bottom: 80px;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0,0,0,0.8);
      color: white;
      border-radius: 8px;
      padding: 10px 15px;
      font-size: 14px;
      z-index: 1000;
      display: none;
    }
  </style>
</head>
<body>
  <!-- 提示框 -->
  <div class="toast" id="toast"></div>
  
  <!-- 顶部导航 -->
  <nav class="top-nav">
    <a href="#" class="nav-btn" id="backBtn">
      <i class="fa fa-angle-left"></i>
    </a>
    <h1 class="nav-title">企业认证资料</h1>
    <a href="#" class="nav-btn" id="moreBtn">
      <i class="fa fa-ellipsis-v"></i>
    </a>
  </nav>
  
  <!-- 样式切换器 -->
  <div class="style-switcher">
    <div class="style-tabs">
      <div class="style-tab active" data-style="detail">详情列表</div>
      <div class="style-tab" data-style="card">资料卡片</div>
      <div class="style-tab" data-style="group">分类分组</div>
      <div class="style-tab" data-style="simple">简约紧凑</div>
    </div>
  </div>
  
  <!-- 认证信息头部 -->
  <div class="verify-header">
    <div class="verify-status-bar">
      <div class="verify-title">北京科技创新有限公司</div>
      <span class="status-tag status-pending">审核中</span>
    </div>
    <div class="verify-meta">
      <div>提交时间: 2023-06-15 14:30</div>
      <div>预计完成: 3个工作日内</div>
    </div>
  </div>
  
  <!-- 样式1 - 详情列表布局 -->
  <div class="document-page active detail-style" id="detail">
    <div class="document-container">
      <!-- 审核反馈（仅审核不通过时显示） -->
      <!-- <div class="review-feedback">
        <div class="feedback-title"><i class="fa fa-exclamation-circle"></i> 审核未通过</div>
        <div class="feedback-content">
          1. 营业执照照片不清晰，请重新上传清晰的照片<br>
          2. 企业地址与营业执照不符，请核对后修改
        </div>
      </div> -->
      
      <div class="document-card">
        <div class="card-section-title">企业基本信息</div>
        
        <div class="document-item">
          <div class="item-label">企业名称</div>
          <div class="item-content">北京科技创新有限公司</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">信用代码</div>
          <div class="item-content">91110108MA01234567</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">企业类型</div>
          <div class="item-content">有限责任公司</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">注册地址</div>
          <div class="item-content">北京市海淀区中关村科技园区8号楼10层</div>
        </div>
      </div>
      
      <div class="document-card">
        <div class="card-section-title">联系人信息</div>
        
        <div class="document-item">
          <div class="item-label">联系人</div>
          <div class="item-content">张明</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">联系电话</div>
          <div class="item-content">138****5678</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">电子邮箱</div>
          <div class="item-content">zhangming@example.com</div>
        </div>
      </div>
      
      <div class="document-card">
        <div class="card-section-title">资质证明材料</div>
        
        <div class="document-item">
          <div class="item-label">营业执照</div>
          <div class="item-content">
            <div class="image-preview">
              <div class="preview-image">
                <img src="https://picsum.photos/id/20/200/200" alt="营业执照">
              </div>
            </div>
          </div>
        </div>
        
        <div class="document-item">
          <div class="item-label">法人人身份证</div>
          <div class="item-content">
            <div class="image-preview">
              <div class="preview-image">
                <img src="https://picsum.photos/id/21/200/200" alt="身份证正面">
              </div>
              <div class="preview-image">
                <img src="https://picsum.photos/id/22/200/200" alt="身份证反面">
              </div>
            </div>
          </div>
        </div>
        
        <div class="document-item">
          <div class="item-label">其他材料</div>
          <div class="item-content">
            <div class="image-preview">
              <div class="preview-image">
                <img src="https://picsum.photos/id/23/200/200" alt="行业资质">
                <div class="image-count">1/2</div>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <div class="action-buttons">
        <button class="action-btn btn-normal" onclick="showToast('已取消修改')">取消</button>
        <button class="action-btn btn-primary" onclick="showToast('修改已提交，等待审核')">修改资料</button>
      </div>
    </div>
  </div>
  
  <!-- 样式2 - 资料卡片布局 -->
  <div class="document-page card-style" id="card">
    <div class="document-container">
      <!-- 审核反馈 -->
      <!-- <div class="review-feedback">
        <div class="feedback-title"><i class="fa fa-exclamation-circle"></i> 审核未通过</div>
        <div class="feedback-content">
          1. 营业执照照片不清晰，请重新上传清晰的照片<br>
          2. 企业地址与营业执照执照不符不符，请核对后修改
        </div>
      </div> -->
      
      <div class="document-section">
        <div class="card-section-title">企业基本信息</div>
        <div class="document-card">
          <div class="document-item">
            <div class="item-label">企业名称</div>
            <div class="item-content">北京科技创新有限公司</div>
          </div>
          
          <div class="document-item">
            <div class="item-label">信用代码</div>
            <div class="item-content">91110108MA01234567</div>
          </div>
          
          <div class="document-item">
            <div class="item-label">企业类型</div>
            <div class="item-content">有限责任公司</div>
          </div>
          
          <div class="document-item">
            <div class="item-label">注册地址</div>
            <div class="item-content">北京市北京市海淀区海淀区中关村中关村科技园区8号楼10层</div>
          </div>
        </div>
      </div>
      
      <div class="document-section">
        <div class="card-section-title">联系人人信息</div>
        <div class="document-card">
          <div class="document-item">
            <div class="item-label">联系人</div>
            <div class="item-content">张明</div>
          </div>
          
          <div class="document-item">
            <div class="item-label">联系电话</div>
            <div class="item-content">138****5678</div>
          </div>
          
          <div class="document-item">
            <div class="item-label">电子邮箱</div>
            <div class="item-content">zhangming@example.com</div>
          </div>
        </div>
      </div>
      
      <div class="document-section">
        <div class="card-section-title">资质证明材料</div>
        <div class="document-card">
          <div class="document-item">
            <div class="item-label">营业执照</div>
            <div class="item-content">
              <div class="image-preview">
                <div class="preview-image">
                  <img src="https://picsum.photos/id/20/200/200" alt="营业执照">
                </div>
              </div>
            </div>
          </div>
          
          <div class="document-item">
            <div class="item-label">法人人身份证</div>
            <div class="item-content">
              <div class="image-preview">
                <div class="preview-image">
                  <img src="https://picsum.photos/id/21/200/200" alt="身份证正面">
                </div>
                <div class="preview-image">
                  <img src="https://picsum.photos/id/22/200/200" alt="身份证反面">
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="bottom-action">
      <button class="action-btn btn-normal" onclick="showToast('已取消')">取消</button>
      <button class="action-btn btn-primary" onclick="showToast('资料已重新提交')">重新提交</button>
    </div>
  </div>
  
  <!-- 样式3 - 分类分组布局 -->
  <div class="document-page group-style" id="group">
    <div class="document-group">
      <div class="group-title">企业基本信息</div>
      <div class="document-card">
        <div class="document-item">
          <div class="item-label">企业名称</div>
          <div class="item-content">北京科技创新有限公司</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">信用代码</div>
          <div class="item-content">91110108MA01234567</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">企业类型</div>
          <div class="item-content">有限责任公司</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">注册地址</div>
          <div class="item-content">北京市海淀区中关村科技园区8号楼10层</div>
        </div>
      </div>
    </div>
    
    <div class="document-group">
      <div class="group-title">联系人信息</div>
      <div class="document-card">
        <div class="document-item">
          <div class="item-label">联系人</div>
          <div class="item-content">张明</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">联系电话</div>
          <div class="item-content">138****5678</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">电子邮箱</div>
          <div class="item-content">zhangming@example.com</div>
        </div>
      </div>
    </div>
    
    <div class="document-group">
      <div class="group-title">资质证明材料</div>
      <div class="document-card">
        <div class="document-item">
          <div class="item-label">营业执照</div>
          <div class="item-content">
            <div class="image-preview">
              <div class="preview-image">
                <img src="https://picsum.photos/id/20/200/200" alt="营业执照">
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <div class="document-card">
        <div class="document-item">
          <div class="item-label">法人身份证</div>
          <div class="item-content">
            <div class="image-preview">
              <div class="preview-image">
                <img src="https://picsum.photos/id/21/200/200" alt="身份证正面">
              </div>
              <div class="preview-image">
                <img src="https://picsum.photos/id/22/200/200" alt="身份证反面">
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <div class="document-card">
        <div class="document-item">
          <div class="item-label">其他材料</div>
          <div class="item-content">
            <div class="image-preview">
              <div class="preview-image">
                <img src="https://picsum.photos/id/23/200/200" alt="行业资质">
                <div class="image-count">1/2</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="bottom-action">
      <button class="action-btn btn-danger" onclick="showToast('已撤回认证申请')">撤回申请</button>
      <button class="action-btn btn-primary" onclick="showToast('修改申请已提交')">修改资料</button>
    </div>
  </div>
  
  <!-- 样式4 - 简约紧凑布局 -->
  <div class="document-page simple-style" id="simple">
    <div class="document-container">
      <!-- 审核反馈 -->
      <!-- <div class="review-feedback">
        <div class="feedback-title"><i class="fa fa-exclamation-circle"></i> 审核未通过</div>
        <div class="feedback-content">
          1. 营业执照照片不清晰，请重新上传清晰的照片<br>
          2. 企业地址与营业执照不符，请核对后修改
        </div>
      </div> -->
      
      <div class="document-card">
        <div class="card-section-title">企业信息</div>
        
        <div class="document-item">
          <div class="item-label">名称</div>
          <div class="item-content">北京科技创新有限公司</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">信用代码</div>
          <div class="item-content">91110108MA01234567</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">类型</div>
          <div class="item-content">有限责任公司</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">地址</div>
          <div class="item-content">北京市海淀区中关村科技园区8号楼10层</div>
        </div>
      </div>
      
      <div class="document-card">
        <div class="card-section-title">联系人</div>
        
        <div class="document-item">
          <div class="item-label">姓名</div>
          <div class="item-content">张明</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">电话</div>
          <div class="item-content">138****5678</div>
        </div>
        
        <div class="document-item">
          <div class="item-label">邮箱</div>
          <div class="item-content">zhangming@example.com</div>
        </div>
      </div>
      
      <div class="document-card">
        <div class="card-section-title">证明材料</div>
        
        <div class="document-item">
          <div class="item-label">营业执照</div>
          <div class="item-content">
            <div class="image-preview">
              <div class="preview-image">
                <img src="https://picsum.photos/id/20/200/200" alt="营业执照">
              </div>
            </div>
          </div>
        </div>
        
        <div class="document-item">
          <div class="item-label">法人身份证</div>
          <div class="item-content">
            <div class="image-preview">
              <div class="preview-image">
                <img src="https://picsum.photos/id/21/200/200" alt="身份证正面">
              </div>
              <div class="preview-image">
                <img src="https://picsum.photos/id/22/200/200" alt="身份证反面">
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="bottom-action">
      <button class="action-btn btn-primary" onclick="showToast('资料已更新并提交')">编辑并重新提交</button>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 获取元素
    const styleTabs = document.querySelectorAll('.style-tab');
    const documentPages = document.querySelectorAll('.document-page');
    const backBtn = document.getElementById('backBtn');
    const moreBtn = document.getElementById('moreBtn');
    const toast = document.getElementById('toast');
    const previewImages = document.querySelectorAll('.preview-image');
    
    // 样式切换
    styleTabs.forEach(tab => {
      tab.addEventListener('click', function() {
        // 移除所有激活状态
        styleTabs.forEach(t => t.classList.remove('active'));
        documentPages.forEach(page => page.classList.remove('active'));
        
        // 设置当前激活状态
        this.classList.add('active');
        const style = this.getAttribute('data-style');
        document.getElementById(style).classList.add('active');
        
        showToast(`已切换到${this.textContent}样式`);
      });
    });
    
    // 返回按钮
    backBtn.addEventListener('click', function() {
      showToast('返回认证列表');
    });
    
    // 更多按钮
    moreBtn.addEventListener('click', function() {
      showToast('更多操作选项');
    });
    
    // 图片预览点击事件
    previewImages.forEach(img => {
      img.addEventListener('click', function() {
        const imgSrc = this.querySelector('img').src;
        showToast('查看大图');
        // 实际项目中可在此处实现大图预览功能
      });
    });
    
    // 显示提示
    function showToast(message) {
      toast.textContent = message;
      toast.style.display = 'block';
      
      setTimeout(() => {
        toast.style.opacity = '0';
        setTimeout(() => {
          toast.style.display = 'none';
          toast.style.opacity = '1';
        }, 300);
      }, 2000);
    }
  </script>
</body>
</html>
